Skip to content

Remove legacy SQL code#4628

Merged
bfops merged 6 commits intomasterfrom
joshua/remove-old-query-code
Mar 19, 2026
Merged

Remove legacy SQL code#4628
bfops merged 6 commits intomasterfrom
joshua/remove-old-query-code

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Mar 12, 2026

Description of Changes

This patch removes the dead legacy SQL query engine and the remaining code that only existed to support it.

Removed:

  • Old SQL compiler/type-checker and VM-based execution path in spacetimedb-core
  • spacetimedb-vm crate
  • Dead vm specific error variants and compatibility code
  • Obsolete tests, benchmarks, and config paths that still referenced the legacy engine

Small pieces still used by the current engine were moved to their proper homes instead of keeping the vm crate around. In particular, RelValue was moved to spacetimedb-execution.

The sqltest crate was also updated to use the current engine. Notably though these tests are not run in CI, however I've kept them around as they may be beneficial as we look to expand our SQL support in the future.

Requires codeowner review from @cloutiertyler due to the removal of the LICENSE file in the (now removed) vm crate.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

None

@joshua-spacetime joshua-spacetime changed the title Joshua/remove old query code Remove legacy SQL code Mar 12, 2026
@joshua-spacetime joshua-spacetime force-pushed the joshua/remove-old-query-code branch 3 times, most recently from ead8bf1 to 6bf9438 Compare March 12, 2026 22:36
@joshua-spacetime joshua-spacetime force-pushed the joshua/remove-old-query-code branch from e8695ac to 4d7904b Compare March 16, 2026 23:49
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving my code owned files, but also the general direction LGTM.

@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Mar 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2026
@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Mar 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2026
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Mar 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2026
@bfops bfops added this pull request to the merge queue Mar 19, 2026
Merged via the queue into master with commit 047dac9 Mar 19, 2026
70 of 74 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/remove-old-query-code branch March 19, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants